<?php
namespace App\Services\Company;

use App\Services\Company\ValidateCompany;
use App\Services\Company\Company\CompanyLogic;


class Company
{
    // 添加公司
    public function addCompany($data)
    {
        ValidateCompany::checkValidate($data, ['company_name', 'address', 'code', 'phone_name', 'phone', 'company_image']);
        return (new CompanyLogic())->addCompany($data);
    }

    //公司列表
    public function companyList(){
        return (new CompanyLogic())->companyList();
    }

    //公司详情
    public function companyDetail($data){
        return (new CompanyLogic())->companyDetail($data);
    }

    //修改公司
    public function updateCompany($data){
        return (new CompanyLogic())->updateCompany($data);
    }

}
